Dompdf\Css\Stylesheet D

Total Complexity 274
Dependencies 9
Dependents 2
Total lines 1,699
Lines of code 893
Logical lines of code 662
Comment lines 501
Methods 28
Properties 13

Methods 28

Method Rating Maintainability Complexity Lines of code
_css_selector_to_xpath()
D
10
93 291
apply_styles()
D
19
63 198
_parse_css()
C
33 24 93
_parse_properties()
A
45 14 38
load_css_file()
A
46 12 37
_parse_sections()
A
47 12 33
_selector_an_plus_b()
A
53 10 19
_image()
A
47 8 34
_parse_font_face()
S
50 5 27
_parse_import()
S
51 5 27
_specificity()
S
54 5 18
add_style()
S
63 3 11
__toString()
S
65 3 9
load_css()
S
72 2 6
lookup()
S
71 2 6
set_protocol()
S
82 1 3
create_style()
S
80 1 3
get_page_styles()
S
83 1 3
get_base_path()
S
83 1 3
get_host()
S
83 1 3
get_protocol()
S
83 1 3
get_dompdf()
S
83 1 3
set_base_path()
S
82 1 3
set_host()
S
82 1 3
getDefaultStylesheet()
S
74 1 4
setFontMetrics()
S
77 1 4
getFontMetrics()
S
82 1 3
__construct()
S
66 1 8